import {Descriptions} from 'antd';
import {useLocation} from '@umijs/max';
function UserDetail(){
    const location = useLocation();
    let user = location.state;
    return (
        <Descriptions title="用户信息">
          <Descriptions.Item label="用户名">{user?.username}</Descriptions.Item>
          <Descriptions.Item label="手机号">{user?.phone}</Descriptions.Item>
        </Descriptions>
    )
}
export default UserDetail;